package cn.com.header.zbpk.account.model;

import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import java.io.Serializable;

/**
 * 用户组关联实体
 *
 * @author luohaidian
 * @date 2017-11-18
 * @time 15:49
 */
@Getter
@Setter
@ToString
public class UserGroup implements Serializable {

    /**
     * ID
     */
    private Long id;

    /**
     * 用户ID
     * @see cn.com.header.zbpk.account.entity.User#id
     */
    private Long userId;

    /**
     * 分组ID
     * @see cn.com.header.zbpk.account.entity.Group#id
     */
    private Long groupId;

    public UserGroup(){

    }

    public UserGroup(Long id){
        this();
        this.id = id;
    }

    public UserGroup(Long userId, Long groupId){
        this.userId = userId;
        this.groupId = groupId;
    }

}
